﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace BRMC.IntelligentCommunity.Migrations
{
    public partial class up_parkingsbillingscheme1 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<decimal>(
                name: "HalfYearPrice",
                table: "ParkingsBillingSchemes",
                nullable: false,
                defaultValue: 0m);

            migrationBuilder.AddColumn<string>(
                name: "PlanName",
                table: "ParkingsBillingSchemes",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "QuarterlyPrice",
                table: "ParkingsBillingSchemes",
                nullable: false,
                defaultValue: 0m);

            migrationBuilder.AddColumn<string>(
                name: "Remark",
                table: "ParkingsBillingSchemes",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "YearPrice",
                table: "ParkingsBillingSchemes",
                nullable: false,
                defaultValue: 0m);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "HalfYearPrice",
                table: "ParkingsBillingSchemes");

            migrationBuilder.DropColumn(
                name: "PlanName",
                table: "ParkingsBillingSchemes");

            migrationBuilder.DropColumn(
                name: "QuarterlyPrice",
                table: "ParkingsBillingSchemes");

            migrationBuilder.DropColumn(
                name: "Remark",
                table: "ParkingsBillingSchemes");

            migrationBuilder.DropColumn(
                name: "YearPrice",
                table: "ParkingsBillingSchemes");
        }
    }
}
